diff --git a/atomicapp.spec b/atomicapp.spec index 8a90936..ad2188c 100644 --- a/atomicapp.spec +++ b/atomicapp.spec @@ -1,10 +1,3 @@ -%define copying() \ -%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7 \ -%license %{*} \ -%else \ -%doc %{*} \ -%endif - Name: atomicapp Version: 0.1.3 Release: 2%{?dist} @@ -37,8 +30,11 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} +#define license tag if not already defined +%{!?_licensedir:%global license %doc} + %files -%copying gpl-3.txt lgpl-3.0.txt +%license gpl-3.txt lgpl-3.0.txt %doc *.md MAINTAINERS Providers.asciidoc # *.py, *.pyc and *.pyo files %{python2_sitelib}/%{name}