readd spec file hacks to fix build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-PP?expand=0&rev=11
This commit is contained in:
Christian Wittmer
2016-12-03 01:46:46 +00:00
committed by Git OBS Bridge
parent 5fba79aeb1
commit 18eb68c1ce
2 changed files with 13 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Dec 3 01:45:20 UTC 2016 - chris@computersalat.de
- readd specfile hacks to fix build on 13.1 or newer
-------------------------------------------------------------------
Thu May 5 09:28:30 UTC 2016 - coolo@suse.com

View File

@@ -54,9 +54,17 @@ JSON::PP is a pure-Perl module and has compatibility to JSON::XS.
%install
%perl_make_install
%if 0%{?suse_version} >= 1210
# newer perl has these included
rm %{buildroot}/%{_mandir}/man1/json_pp.1
rm %{buildroot}/%{_bindir}/json_pp
%endif
%perl_process_packlist
%perl_gen_filelist
# perl_gen_filelist makes everything 0644...
sed -i -e '/json_pp/s#\(^.*$\)#%attr(755,root,root) \1#' %{name}.files
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README