Spec-file cleanups

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
epel9
Peter Lemenkov 9 years ago
parent 23645b5e7c
commit f7cebc8e52

@ -1,15 +1,14 @@
Name: CharLS Name: CharLS
Version: 1.0 Version: 1.0
Release: 10%{?dist} Release: 11%{?dist}
Summary: An optimized implementation of the JPEG-LS standard Summary: An optimized implementation of the JPEG-LS standard
Group: Development/Libraries Group: Development/Libraries
License: BSD License: BSD
URL: http://charls.codeplex.com/ URL: https://github.com/team-charls/charls
# CharLS uses an interactive download link that asks you to accept the # CharLS uses an interactive download link that asks you to accept the
# (BSD-like) license before obtaining the source code. # (BSD-like) license before obtaining the source code.
# You can find the download link at http://charls.codeplex.com/ # You can find the download link at http://charls.codeplex.com/
Source0: CharLS-source-1.0.zip Source0: CharLS-source-1.0.zip
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: charls_add_cmake_install_target.patch Patch0: charls_add_cmake_install_target.patch
Patch1: charls_add_sharedlib_soname.patch Patch1: charls_add_sharedlib_soname.patch
Patch2: charls_fix_tests.patch Patch2: charls_fix_tests.patch
@ -18,7 +17,7 @@ BuildRequires: cmake >= 2.6.0
BuildRequires: dos2unix BuildRequires: dos2unix
%description %description
An optimized implementation of the JPEG-LS standard for loss less and An optimized implementation of the JPEG-LS standard for loss less and
near loss less image compression. JPEG-LS is a low-complexity standard that near loss less image compression. JPEG-LS is a low-complexity standard that
matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms
open source and commercial JPEG LS implementations. open source and commercial JPEG LS implementations.
@ -54,44 +53,42 @@ make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%check %check
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
ctest . ctest .
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %license License.txt
%doc License.txt
%{_libdir}/*.so.* %{_libdir}/*.so.*
%package devel %package devel
Summary: Libraries and headers for CharLS Summary: Libraries and headers for CharLS
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
CharLS Library Header Files and Link Libraries.
CharLS Library Header Files and Link Libraries
%files devel %files devel
%defattr(-,root,root)
%dir %{_includedir}/%{name}/ %dir %{_includedir}/%{name}/
%{_includedir}/%{name}/* %{_includedir}/%{name}/*
%{_libdir}/*.so %{_libdir}/*.so
%changelog %changelog
* Tue Jan 26 2016 Peter Lemenkov <lemenkov@gmail.com> - 1.0-11
- Spec-file cleanups
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10 * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save