Changeset 967


Ignore:
Timestamp:
Feb 8, 2017, 5:26:10 PM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: libtiff: Release version 4.0.7-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/libtiff.spec

    r643 r967  
    1 Summary: Library of functions for manipulating TIFF format image files
    2 Name: libtiff
    3 Version: 4.0.6
    4 Release: 1%{?dist}
     1Summary:       Library of functions for manipulating TIFF format image files
     2Name:          libtiff
     3Version:       4.0.7
     4Release:       1%{?dist}
     5License:       libtiff
     6Group:         System Environment/Libraries
     7URL:           http://www.simplesystems.org/libtiff/
    58
    6 License: libtiff
    7 Group: System Environment/Libraries
    8 URL: http://www.remotesensing.org/libtiff/
    9 Vendor: bww bitwise works GmbH
     9Vendor:        bww bitwise works GmbH
     10%scm_source  svn http://svn.netlabs.org/repos/ports/libtiff/trunk 1989
    1011
    11 #define svn_url     e:/trees/libtiff/trunk
    12 %define svn_url     http://svn.netlabs.org/repos/ports/libtiff/trunk
    13 %define svn_rev     1251
    14 
    15 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    16 
    17 BuildRequires: zlib-devel libjpeg-devel pkgconfig
    18 BuildRequires: libtool automake autoconf
    19 
    20 # @todo Temporary enforce dependency on the legacy package
    21 # to have it installed. This should be dropped at some point.
    22 Requires: libtiff-legacy
     12BuildRequires: zlib-devel libjpeg-devel
     13BuildRequires: libtool automake autoconf pkgconfig
    2314
    2415%description
     
    3223
    3324%package devel
    34 Summary: Development tools for programs which will use the libtiff library
    35 Group: Development/Libraries
    36 Requires: %{name} = %{version}-%{release}
    37 Requires: pkgconfig
     25Summary:       Development tools for programs which will use the libtiff library
     26Group:         Development/Libraries
     27Requires:      %{name} = %{version}-%{release}
     28Requires:      pkgconfig
    3829
    3930%description devel
     
    4738
    4839%package static
    49 Summary: Static TIFF image format file library
    50 Group: Development/Libraries
    51 Requires: %{name}-devel = %{version}-%{release}
     40Summary:       Static TIFF image format file library
     41Group:         Development/Libraries
     42Requires:      %{name}-devel = %{version}-%{release}
    5243
    5344%description static
     
    5748
    5849%package tools
    59 Summary: Command-line utility programs for manipulating TIFF files
    60 Group: Development/Libraries
    61 Requires: %{name} = %{version}-%{release}
     50Summary:       Command-line utility programs for manipulating TIFF files
     51Group:         Development/Libraries
     52Requires:      %{name} = %{version}-%{release}
    6253
    6354%description tools
     
    6556image files using the libtiff library.
    6657
     58%legacy_runtime_packages
     59
    6760%debug_package
    6861
    6962%prep
    70 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
    71 %setup -q
    72 %else
    73 %setup -n "%{name}-%{version}" -Tc
    74 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    75 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
    76 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
    77 %endif
     63%scm_setup
    7864
    7965# Use build system's libtool.m4, not the one in the package.
     
    8369export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    8470export CFLAGS="%{optflags} -fno-strict-aliasing"
     71export VENDOR="%{vendor}"
    8572%configure
    8673make %{?_smp_mflags}
    8774
    8875%install
    89 rm -rf $RPM_BUILD_ROOT
    90 
    9176make DESTDIR=$RPM_BUILD_ROOT install
    9277
     
    10893rm -f html/man/tiffsv.1.html
    10994
    110 
    11195%clean
    11296rm -rf $RPM_BUILD_ROOT
    11397
     98#post -p /sbin/ldconfig
     99
     100#postun -p /sbin/ldconfig
     101
     102%check
     103#LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH make check
    114104
    115105%files
     
    117107%doc COPYRIGHT README RELEASE-DATE VERSION
    118108%{_libdir}/tiff*.dll
     109%exclude %{_libdir}/tiff.dll
    119110
    120111%files devel
     
    123114%{_includedir}/*
    124115%{_libdir}/tiff*_dll.a
    125 %{_libdir}/tiffxx*_dll.a
    126116%{_libdir}/pkgconfig/libtiff-4.pc
    127117%{_mandir}/man3/*
     
    130120%defattr(-,root,root,0755)
    131121%{_libdir}/*.a
     122%exclude %{_libdir}/*_dll.a
    132123
    133124%files tools
     
    137128
    138129%changelog
     130* Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.7-1
     131- updated source to 4.0.7 version
     132- join legazy package to the main with our new macro
     133- use the new scm_source and scm_setup macros
     134- add bldlevel info to the dll
     135
    139136* Wed Jan 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 4.0.6-1
    140137- updated source to 4.0.6 version
Note: See TracChangeset for help on using the changeset viewer.