Пакет rpm-build-licenses: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | # vim: set ft=spec: -*- rpm-spec -*- %define _name licenses Name: rpm-build-%_name Version: 3.0.0 Release: alt1 Summary: RPM macros for well-known licenses # We can't use our own macros... License: GPLv2 Group: Development/Other Url: http://www.altlinux.org/License Source: %name-%version.tar Packager: Aleksey Avdeev <solo@altlinux.ru> BuildArch: noarch Requires: common-licenses %description This package contains RPM macros for license names commonly used in Open Source software. Use these macros in License tags of your specfiles. %prep %setup -n %name-%version ln -sf %_licensedir/GPL-2 COPYING %install cat <<__EOF__ >%_name.rpmmacros %%gpl2only GPLv2 %%gpl2plus GPLv2+ %%gpl3only GPLv3 %%gpl3plus GPLv3+ %%lgpl2only LGPLv2 %%lgpl21only LGPLv2.1 %%lgpl2plus LGPLv2+ %%lgpl21plus LGPLv2.1+ %%lgpl3only LGPLv3 %%lgpl3plus LGPLv3+ %%bsd_orig BSD-4-Clause-UC %%bsd BSD %%bsdstyle BSD-4-Clause %%mit MIT %%mpl MPL-2.0 %%w3cl W3C %%asl Apache-2.0 %%jpackage_license GPL2+ or Apache-2.0 %%sendmail_license Sendmail %%artistic_license Artistic-1.0 %%artistic_license_v2 Artistic-2.0 %%perl_license Perl %%fdl FDL-1.2 %%gfdl GFDL-1.3+ %%lppl LPPL-1.3c %%qpl1 QPL-1.0 %%ccbysa30 CC-BY-SA-3.0 %%ccby30 CC-BY-3.0 %%ccbysa25 CC-BY-SA-2.5 %%ccby25 CC-BY-2.5 %%epl ErlPL %%pubdomain ALT-Public-Domain %%gagpl3only AGPL-3.0 %%gagpl3plus AGPL-3.0+ # Not sure whether these ones should exist at all. Too clumsy names and vague # semantics. %%gpllgpl2only \ %{warning Hopefully you have read the README section about %%gpllgpl* macros.}\ GPLv2 and LGPLv2 %%gpllgpl2plus \ %{warning Hopefully you have read the README section about %%gpllgpl* macros.}\ GPLv2+ and LGPLv2+ %%gpllgpl3only \ %{warning Hopefully you have read the README section about %%gpllgpl* macros.}\ GPLv3 and LGPLv3 %%gpllgpl3plus \ %{warning Hopefully you have read the README section about %%gpllgpl* macros.}\ GPLv3+ and LGPLv3+ __EOF__ install -pD -m644 %_name.rpmmacros %buildroot%_rpmmacrosdir/%_name %files %_rpmmacrosdir/%_name %doc README %doc --no-dereference COPYING %changelog * Wed Nov 27 2019 Mikhail Efremov <sem@altlinux.org> 3.0.0-alt1 - Updated for common-licenses-1.6. * Sun Feb 07 2016 Michael Shigorin <mike@altlinux.org> 2.0.5-alt2 - get rid of useless rpm-macros-branch: this package was never built for any branch specifically (ironically, that one has BRs on both this one and itself thus creating a loop) * Fri Oct 03 2014 Sergey Y. Afonin <asy@altlinux.ru> 2.0.5-alt1 - added a more specific macros for the GNU Free Documentation License (Bug #24945) - added a set of macroses for the GNU Affero General Public License (Bug #26826) * Mon Apr 04 2011 Aleksey Avdeev <solo@altlinux.ru> 2.0.4-alt1 - added Qt Public License Version 1.0 (Bug #25374) - relocated macro files to %%_rpmmacrosdir/ * Wed Jan 19 2011 Sergey Y. Afonin <asy@altlinux.ru> 2.0.3-alt1 - added Artistic License 2.0 (Bug #24921) * Sat Jun 27 2009 Alexey Rusakov <ktirf@altlinux.org> 2.0.2-alt1 - added %distributable - a generic macro for a license not approved by OSI (read the README file) (closes ALT Bug 20443). * Fri Mar 06 2009 Alexey Rusakov <ktirf@altlinux.org> 2.0.1-alt1 - %%gpllgpl* macros get back but with a warning (Bug #19079) * Sat Feb 28 2009 Alexey Rusakov <ktirf@altlinux.org> 2.0-alt1 - added a README file with notes and Q&A on using license macros (Bug #12972) - removed %%gpllpgl* macros (they are weird and unused) - resolved ambiguity of the BSD license: %%bsd now only means the revised BSD. If you used %%bsd macro in some package, revisit it to check if it really is distributed under the terms of the revised BSD license - added macros for LGPLv2.1 and LGPLv2.1+ - use GPL-2 file from common-licenses for COPYING file - added Url tag * Sun Feb 15 2009 Alexey Rusakov <ktirf@altlinux.org> 1.0.2-alt1 - added Erlang Public License (Bug #18635) * Sat Jan 24 2009 Alexey Rusakov <ktirf@altlinux.org> 1.0.1-alt1 - added Creative Commons licenses (Bug #18600) - added Packager and Url tags to favor repocop * Sat Sep 22 2007 Alexey Rusakov <ktirf@altlinux.org> 1.0-alt2 - fixed copy-paste consequences in the package Summary (Bug #12875) * Wed Sep 05 2007 Alexey Rusakov <ktirf@altlinux.org> 1.0-alt1 - added %%lppl macro (closing Bug #12688) - the package lives in git.alt from now on * Mon Aug 20 2007 Alexey Rusakov <ktirf@altlinux.org> 0.8-alt1 - Changes after discussion in devel@altlinux: + GPLv2 or later -> GPLv2+ (and all similar ones) + %%bsdlike removed - %%bsdstyle added + removed 'License' word from expansions ('license' in macro names stays intact) + reduced FDL and MPL expansions to respective abbreviations + replaced slashes in multilicense macros (such as GPL/LGPL) with: + commas in cases where package parts are covered with different licenses; + ' or ' in cases where package may be distributed under either of the given licenses (dual or triple licensing); * Sun Aug 05 2007 Alexey Rusakov <ktirf@altlinux.org> 0.7-alt1 - no more %%gpl2, %%gpl3 etc. - they are replaced with %%gpl2only, %%gpl3only etc. in order to eliminate ambiguity. * Wed Aug 01 2007 Alexey Rusakov <ktirf@altlinux.org> 0.6-alt1 - added %%artistic_license, %%perl_license, and %%fdl (Bug #12433) * Tue Jul 31 2007 Alexey Rusakov <ktirf@altlinux.org> 0.5-alt1 - added %%sendmail_license (not %%sendmail, sorry; there's only one namespace for all macros and we don't want macros' names to intersect, do we?) - fixed a typo in the GPL/LGPL v3 macro - added 'or later' counterparts to all GPL and LGPL licenses * Tue Jul 03 2007 Alexey Rusakov <ktirf@altlinux.org> 0.4-alt1 - fixed the package Group. * Mon Jul 02 2007 Alexey Rusakov <ktirf@altlinux.org> 0.3-alt1 - added %%gpllgpl{2,3}, %%bsdlike, %%asl (Apache), %%jpackage_license, %%mpl (Mozilla), %%w3cl (W3C License). - changed %%mit from MIT/X11 to MIT/X consortium. * Mon Jul 02 2007 Alexey Rusakov <ktirf@altlinux.org> 0.2-alt1 - Added %%lgpl2 and %%lgpl3. * Sun Jul 01 2007 Alexey Rusakov <ktirf@altlinux.org> 0.1-alt1 - Initial Sisyphus version - Here we go: %%gpl2, %%gpl2plus, %%gpl3 %%bsd, %%mit and %%pubdomain are available. Waiting for the input from the team. |