Ignore:
Timestamp:
Oct 15, 2020, 8:52:00 PM (5 years ago)
Author:
tellie
Message:

spec: LibRaw: Release version 0.20.2-1.

File:
1 edited

Legend:

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

    r1582 r1717  
     1
     2# feature macro to enable samples (or not)
     3%if 0%{?rhel} != 7
     4%global samples 1
     5%endif
     6
    17Summary: Library for reading RAW files obtained from digital photo cameras
    28Name: LibRaw
    3 Version: 0.19.2
    4 Release: 5%{?dist}
     9Version: 0.20.2
     10Release: 1%{?dist}
    511License: BSD and (CDDL or LGPLv2)
    612URL: http://www.libraw.org
    713
    8 BuildRequires: gcc
    9 BuildRequires: lcms2
    10 BuildRequires: jasper
    11 BuildRequires: libjpeg
     14BuildRequires: gcc-c++
     15BuildRequires: pkgconfig(lcms2)
     16BuildRequires: pkgconfig(jasper)
     17BuildRequires: pkgconfig(libjpeg)
    1218BuildRequires: autoconf automake libtool
    1319
    14 #Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
    15 %scm_source github http://github.com/TeLLie/%{name}-os2 master-os2
    16 #Patch0:  LibRaw-0.6.0-pkgconfig.patch
    17 #Patch1:  LibRaw-0.17.1-CVE-2015-8366-8367.patch
     20%if !0%{?os2_version}
     21Source0: http://github.com/LibRaw/LibRaw/archive/%{version}.tar.gz
     22%else
     23%scm_source github https://github.com/Tellie/LibRaw-os2 master
     24%endif
     25Patch0: LibRaw-pkgconfig.patch
    1826Provides: bundled(dcraw) = 9.25
    1927
     
    5058
    5159%prep
    52 #%setup -q
     60%if !0%{?os2_version}
     61%autosetup -p1 -n %{name}-%{version}
     62%else
    5363%scm_setup
    54 autoreconf -vif
    55 
    56 #%patch0 -p0 -b .pkgconfig
    57 #%patch1 -p1 -b .CVE-2015-8366
     64%endif
    5865
    5966%build
    6067export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    6168export LIBS="-lcx -lpthread"
    62 
     69autoreconf -ifv
    6370%configure \
    64     --enable-examples=yes \
     71    --enable-examples=%{?samples:yes}%{!?samples:no} \
    6572    --enable-jasper \
    6673    --enable-jpeg \
    67     --enable-lcms \
    68     --disable-openmp
     74    --enable-lcms
     75%if !0%{?os2_version}
     76    --enable-openmp
     77%endif
    6978
    7079# https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
     
    7281sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    7382
    74 #%make_build
    75 make %{?_smp_mflags}
     83%if !0%{?os2_version}
     84%make_build
     85%else
     86%endif
    7687
    7788%install
     
    89100rm -fv %{buildroot}%{_libdir}/lib*.la
    90101
    91 #%ldconfig_scriptlets
     102%if !0%{?os2_version}
     103%ldconfig_scriptlets
     104%endif
    92105
    93106%files
     
    95108%doc Changelog.txt
    96109%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
    97 %{_libdir}/raw*19*.dll
     110%if !0%{?os2_version}
     111%{_libdir}/libraw.so.20*
     112%{_libdir}/libraw_r.so.20*
     113%else
     114%{_libdir}/*.dll
     115%endif
    98116
    99117%files static
    100118%defattr(-,root,root)
     119%if !0%{?os2_version}
     120%{_libdir}/libraw.a
     121%{_libdir}/libraw_r.a
     122%else
     123%{_libdir}/raw.a
    101124%{_libdir}/raw_r.a
    102 %{_libdir}/raw.a
    103 %exclude %{_libdir}/raw*_dll.a
     125%endif
    104126
    105127%files devel
     
    108130%doc samples
    109131%{_includedir}/libraw/
     132%if !0%{?os2_version}
     133%{_libdir}/libraw.so
     134%{_libdir}/libraw_r.so
     135%else
    110136%{_libdir}/raw*_dll.a
     137%endif
    111138%{_libdir}/pkgconfig/libraw.pc
    112139%{_libdir}/pkgconfig/libraw_r.pc
    113140%exclude %{_docdir}/libraw/*
    114141
     142%if 0%{?samples}
     143%defattr(-,root,root)
    115144%files samples
    116 %defattr(-,root,root)
    117145%{_bindir}/*
     146%endif
    118147
    119148%changelog
     149* Thu Oct 15 2020 Elbert Pol <elbert.pol@gmail.com> - 0.20.2-1
     150- Updated to latest version
     151
    120152* Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-5
    121153- Remove dll's from the devel package.
Note: See TracChangeset for help on using the changeset viewer.