--- python-django-dajax.spec.orig 2012-05-14 14:55:52.398797479 +0200 +++ python-django-dajax.spec 2012-05-14 13:59:47.260720698 +0200 @@ -4,7 +4,7 @@ Name: %{lang_name}-%{lib_prefix}-%{lib_name} Version: 0.8.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Library to create asynchronous presentation logic with Django and dajaxice Group: Development/Libraries @@ -15,9 +15,9 @@ BuildArch: noarch BuildRequires: python2-devel, python-setuptools -Requires: python-django-dajaxice >= 0.1.2 +Requires: httpd, python-django-dajaxice >= 0.1.2 -%global lib_datadir %{_datadir}/%{name} +%global lib_datadir %{_datadir}/%{lib_prefix}-%{lib_name} %global lib_jsdir %{lib_datadir}/js %global lib_httpdconfddir %{_sysconfdir}/httpd/conf.d @@ -40,17 +40,11 @@ %{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT # remove empty source files and bytecompiled files -for src_file in $(find $RPM_BUILD_ROOT -type f -size 0 -name "*.py") -do - rm ${src_file}{,c,o} -done +find $RPM_BUILD_ROOT -type f -size 0 -name "*.py" -exec rm '{}'{,c,o} \; # remove remaining empty files find $RPM_BUILD_ROOT -type f -size 0 -delete -# add prefix "python-" to library data dir -mv $RPM_BUILD_ROOT%{_datadir}/%{lib_prefix}-%{lib_name} ${RPM_BUILD_ROOT}%{lib_datadir} - # move javascript files to js dir mkdir -p $RPM_BUILD_ROOT%{lib_jsdir} mv $RPM_BUILD_ROOT%{lib_datadir}/*.js $RPM_BUILD_ROOT%{lib_jsdir}/ @@ -69,6 +63,11 @@ %changelog +* Mon May 14 2012 Jakub Filak - 0.8.4-4 +- Do not rename package's data dir +- Simplification of the install section +- Add httpd to requires field + * Mon May 14 2012 Jakub Filak - 0.8.4-3 - Do not rename egg-info - Add python-setuptools to build requires field