-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibjpeg9.spec
104 lines (85 loc) · 2.91 KB
/
libjpeg9.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Name: libjpeg9
Version: 9f
Release: 1
Summary: Independent JPEG Group's free JPEG software Version 9
License: BSD
URL: https://ijg.org/
%define _disable_source_fetch 0
Source0: https://ijg.org/files/jpegsrc.v%{version}.tar.gz
BuildRequires: gcc
%description
JPEG library is a free library with functions for handling the JPEG
image data format.
This package doesn't conflict with other versions of libjpeg, since
it only provides the corresponding dynamic library.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Conflicts: libjpeg-turbo-devel
Conflicts: libjpeg7-devel
Conflicts: libjpeg8-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
This package conflicts with other versions of libjpeg, along with
the libjpeg-turbo implementaion, since they provides different
versions of header files under the same time.
%package utils
Summary: Utility binaries for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Conflicts: libjpeg7-utils
Conflicts: libjpeg8-utils
%description utils
The %{name}-utils package contains utility binaries which comes
alongside with %{name}.
This package conflicts with other versions of libjpeg, along with
the libjpeg-turbo implementaion, since they provides different
versions of binaries under the same name.
%prep
%setup -n jpeg-%{version} -q
%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
rm -rf $RPM_BUILD_ROOT
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# Fix broken pkgconfig version
sed -i -E 's/^(Version:[\ \t]*)(\w+)\:(\w+)\:(\w+)/\1\2\.\3\.\4/g' ${RPM_BUILD_ROOT}/%{_libdir}/pkgconfig/libjpeg.pc
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%check
LD_LIBRARY_PATH=${RPM_BUILD_ROOT}/%{_libdir} make check
%files
%doc change.log
%doc README
%{_libdir}/*.so.*
%files devel
%doc structure.txt
%doc usage.txt
%doc wizard.txt
%doc example.c
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libjpeg.pc
%files utils
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Wed Sep 11 2024 [email protected] 9f-1
- Update to upstream v9f.
* Sun Jan 24 2022 [email protected] 9e-1
- Update to upstream v9e.
* Sun Mar 8 2020 [email protected] 9d-1
- Update to upstream v9d.
* Wed Dec 19 2018 [email protected] 9c-2
- Change the download link to https. No source change so no version bump.
* Thu May 17 2018 [email protected] 9c-1
- Update to upstream v9c.
- Add a version fix for pkgconfig file, thanks to everpcpc.
* Sun Oct 9 2016 [email protected] 9b-2
- Conflict fix.
* Sun Oct 9 2016 [email protected] 9b-1
- Initial implementation for v9.