Accepting request 79657 from graphics

- Stop using _service files 

- Made html document file non-executable (fix for RPMLINT warning)
- Cleaned up spec file formatting

OBS-URL: https://build.opensuse.org/request/show/79657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libraw?expand=0&rev=18
This commit is contained in:
Sascha Peilicke 2011-08-24 15:17:12 +00:00 committed by Git OBS Bridge
commit 7dd6619744
5 changed files with 26 additions and 33 deletions

3
LibRaw-0.13.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e554d5fd6ca6f430d74e4c7084086cf57bd0c478268412920c0ce2940b86fe8
size 1314431

View File

@ -1,17 +0,0 @@
<?xml version="1.0" ?>
<services>
<service name="download_url">
<param name="protocol">http</param>
<param name="host">www.libraw.org</param>
<param name="path">/data/LibRaw-0.13.5.tar.gz</param>
</service>
<service name="verify_file">
<param name="file">_service:download_url:LibRaw-0.13.5.tar.gz</param>
<param name="verifier">sha256</param>
<param name="checksum">7e554d5fd6ca6f430d74e4c7084086cf57bd0c478268412920c0ce2940b86fe8</param>
</service>
<service name="recompress">
<param name="compression">bz2</param>
<param name="file">*.tar.gz</param>
</service>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a1208c273163d4c03a09e4832a1732d57f4c6f22bde8a2e5ca1c134645bb2ed0
size 1003244

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Aug 24 11:53:14 UTC 2011 - idonmez@novell.com
- Stop using _service files
-------------------------------------------------------------------
Tue Aug 9 20:03:58 UTC 2011 - toddrme2178@gmail.com
- Made html document file non-executable (fix for RPMLINT warning)
- Cleaned up spec file formatting
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 12 00:07:49 UTC 2011 - Nico.Laus.2001@gmx.de Sun Jun 12 00:07:49 UTC 2011 - Nico.Laus.2001@gmx.de

View File

@ -16,7 +16,7 @@
# #
%define fake_name LibRaw %define tar_name LibRaw
Name: libraw Name: libraw
Version: 0.13.5 Version: 0.13.5
@ -25,12 +25,11 @@ License: CDDLv1.0 | LGPLv2.1
Summary: Library for reading RAW files obtained from digital photo cameras Summary: Library for reading RAW files obtained from digital photo cameras
Url: http://www.libraw.org/ Url: http://www.libraw.org/
Group: System/Libraries Group: System/Libraries
Source0: http://www.libraw.org/data/%{fake_name}-%{version}.tar.bz2 Source: http://www.libraw.org/data/%{tar_name}-%{version}.tar.gz
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: make BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel BuildRequires: liblcms2-devel
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: libjpeg-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -94,11 +93,10 @@ This package contains static libraries that applications can use to build
against LibRaw. LibRaw does not provide dynamic libraries. against LibRaw. LibRaw does not provide dynamic libraries.
%prep %prep
%setup -q -n %{fake_name}-%{version} %setup -q -n %{tar_name}-%{version}
#autoreconf -fi
%build %build
CXXFLAGS="$RPM_OPT_FLAGS -fPIC" \ CXXFLAGS="%{optflags} -fPIC" \
%configure %configure
# build env is too broken for parallel build # build env is too broken for parallel build
make make
@ -106,18 +104,19 @@ make
%install %install
mv doc manual mv doc manual
# The source tree has these with execute permissions for some reason # The source tree has these with execute permissions for some reason
%{__chmod} -x Changelog.txt LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf chmod -x Changelog.txt LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf
chmod -x manual/index.html
# The Libraries # The Libraries
%makeinstall %make_install
# duplicated files # duplicated files
%__rm -rf %{buildroot}%{_datadir}/doc rm -rf %{buildroot}%{_datadir}/doc
%post -n libraw2 -p /sbin/ldconfig %post -n libraw2 -p /sbin/ldconfig
%postun -n libraw2 -p /sbin/ldconfig %postun -n libraw2 -p /sbin/ldconfig
%clean %clean
%__rm -rf %{buildroot} rm -rf %{buildroot}
%files tools %files tools
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -144,8 +143,8 @@ mv doc manual
%files -n libraw2 %files -n libraw2
%defattr(-,root,root,-) %defattr(-,root,root,-)
%_libdir/libraw.so.* %{_libdir}/libraw.so.*
%_libdir/libraw_r.so.* %{_libdir}/libraw_r.so.*
%files devel-static %files devel-static
%defattr(-,root,root,-) %defattr(-,root,root,-)