Группа :: Разработка/Прочее
Пакет: rpm-build-licenses
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _name licenses
Name: rpm-build-%_name
Version: 1.0
Release: alt2
Summary: RPM macros for well-known licenses
# We can't use our own macros...
License: GPLv2
Group: Development/Other
BuildArch: noarch
%description
This package contains RPM macros for license names commonly used in Open Source software. Use these macros in License tags of your specfiles.
%install
cat <<__EOF__ >%_name.rpmmacros
%%gpl2only GPLv2
%%gpl2plus GPLv2+
%%gpl3only GPLv3
%%gpl3plus GPLv3+
%%lgpl2only LGPLv2
%%lgpl2plus LGPLv2+
%%lgpl3only LGPLv3
%%lgpl3plus LGPLv3+
%%bsd BSD
%%bsdstyle BSD-style
%%mit MIT/X Consortium
%%mpl MPL
%%w3cl W3C
%%asl Apache
%%jpackage_license JPackage
%%sendmail_license Sendmail
%%artistic_license Artistic
%%perl_license Perl (GPL or Artistic)
%%fdl FDL
%%lppl LPPL
%%pubdomain Public domain
# Not sure whether these ones should exist at all. Too clumsy names and vague
# semantics.
%%gpllgpl2only GPLv2, LGPLv2
%%gpllgpl2plus GPLv2+, LGPLv2+
%%gpllgpl3only GPLv3, LGPLv3
%%gpllgpl3plus GPLv3+, LGPLv3+
__EOF__
install -D -m644 %_name.rpmmacros %buildroot/%_sysconfdir/rpm/macros.d/%_name
%files
%_sysconfdir/rpm/macros.d/%_name
%changelog
…
Полный changelog можно просмотреть здесь
Name: rpm-build-%_name
Version: 1.0
Release: alt2
Summary: RPM macros for well-known licenses
# We can't use our own macros...
License: GPLv2
Group: Development/Other
BuildArch: noarch
%description
This package contains RPM macros for license names commonly used in Open Source software. Use these macros in License tags of your specfiles.
%install
cat <<__EOF__ >%_name.rpmmacros
%%gpl2only GPLv2
%%gpl2plus GPLv2+
%%gpl3only GPLv3
%%gpl3plus GPLv3+
%%lgpl2only LGPLv2
%%lgpl2plus LGPLv2+
%%lgpl3only LGPLv3
%%lgpl3plus LGPLv3+
%%bsd BSD
%%bsdstyle BSD-style
%%mit MIT/X Consortium
%%mpl MPL
%%w3cl W3C
%%asl Apache
%%jpackage_license JPackage
%%sendmail_license Sendmail
%%artistic_license Artistic
%%perl_license Perl (GPL or Artistic)
%%fdl FDL
%%lppl LPPL
%%pubdomain Public domain
# Not sure whether these ones should exist at all. Too clumsy names and vague
# semantics.
%%gpllgpl2only GPLv2, LGPLv2
%%gpllgpl2plus GPLv2+, LGPLv2+
%%gpllgpl3only GPLv3, LGPLv3
%%gpllgpl3plus GPLv3+, LGPLv3+
__EOF__
install -D -m644 %_name.rpmmacros %buildroot/%_sysconfdir/rpm/macros.d/%_name
%files
%_sysconfdir/rpm/macros.d/%_name
%changelog
…
Полный changelog можно просмотреть здесь