Blame SPECS/gcab.spec

7703fd
Name:           gcab
7703fd
Version:        0.7
7703fd
Release:        4%{?dist}
7703fd
Summary:        Cabinet file library and tool
7703fd
7703fd
License:        LGPLv2+
7703fd
#VCS:           git:git://git.gnome.org/gcab
7703fd
URL:            http://ftp.gnome.org/pub/GNOME/sources/gcab
7703fd
Source0:        http://ftp.gnome.org/pub/GNOME/sources/gcab/%{version}/%{name}-%{version}.tar.xz
7703fd
7703fd
# Already upstream
7703fd
Patch1:         0001-Fix-a-few-Dereference-of-null-pointer-warnings.patch
7703fd
Patch2:         0002-Always-check-the-return-value-when-writing-to-the-st.patch
7703fd
Patch3:         0003-Fix-a-theoretical-crash-when-building-the-table-entr.patch
7703fd
Patch4:         0004-Fix-buffer-overrun-when-generating-Huffman-codes.patch
7703fd
Patch5:         0001-Do-not-crash-when-ncbytes-is-larger-than-the-buffer-.patch
7703fd
7703fd
BuildRequires:  intltool
7703fd
BuildRequires:  vala-tools
7703fd
BuildRequires:  glib2-devel
7703fd
BuildRequires:  gobject-introspection-devel
7703fd
BuildRequires:  zlib-devel
7703fd
7703fd
Requires:       libgcab1%{?_isa} = %{version}-%{release}
7703fd
7703fd
%description
7703fd
gcab is a tool to manipulate Cabinet archive.
7703fd
7703fd
%package -n libgcab1
7703fd
Summary:        Library to create Cabinet archives
7703fd
7703fd
%description -n libgcab1
7703fd
libgcab is a library to manipulate Cabinet archive using GIO/GObject.
7703fd
7703fd
%package -n libgcab1-devel
7703fd
Summary:        Development files to create Cabinet archives
7703fd
Requires:       libgcab1%{?_isa} = %{version}-%{release}
7703fd
Requires:       glib2-devel
7703fd
Requires:       pkgconfig
7703fd
7703fd
%description -n libgcab1-devel
7703fd
libgcab is a library to manipulate Cabinet archive.
7703fd
7703fd
Libraries, includes, etc. to compile with the gcab library.
7703fd
7703fd
%prep
7703fd
%setup -q
7703fd
%patch1 -p1 -b .coverity1
7703fd
%patch2 -p1 -b .coverity2
7703fd
%patch3 -p1 -b .coverity3
7703fd
%patch4 -p1 -b .coverity4
7703fd
%patch5 -p1 -b .cve20185345
7703fd
7703fd
%build
7703fd
%configure --disable-silent-rules --disable-static
7703fd
make %{?_smp_mflags}
7703fd
7703fd
%install
7703fd
rm -rf %{buildroot}
7703fd
make DESTDIR=%{buildroot} install
7703fd
7703fd
rm -f %{buildroot}%{_libdir}/*.a
7703fd
rm -f %{buildroot}%{_libdir}/*.la
7703fd
7703fd
%find_lang %{name}
7703fd
7703fd
%post -n libgcab1 -p /sbin/ldconfig
7703fd
%postun -n libgcab1 -p /sbin/ldconfig
7703fd
7703fd
%files
7703fd
%doc COPYING NEWS
7703fd
%{_bindir}/gcab
7703fd
%{_mandir}/man1/gcab.1*
7703fd
7703fd
%files -n libgcab1 -f %{name}.lang
7703fd
%doc COPYING NEWS
7703fd
%{_libdir}/girepository-1.0/GCab-1.0.typelib
7703fd
%{_libdir}/libgcab-1.0.so.*
7703fd
7703fd
%files -n libgcab1-devel
7703fd
%{_datadir}/gir-1.0/GCab-1.0.gir
7703fd
%{_datadir}/gtk-doc/html/gcab/*
7703fd
%{_datadir}/vala/vapi/libgcab-1.0.vapi
7703fd
%{_includedir}/libgcab-1.0/*
7703fd
%{_libdir}/libgcab-1.0.so
7703fd
%{_libdir}/pkgconfig/libgcab-1.0.pc
7703fd
7703fd
%changelog
7703fd
* Wed Feb 14 2018 Richard Hughes <rhughes@redhat.com> - 0.7-4
7703fd
- Fixes the security issue known as CVE-2018-5345
7703fd
- Resolves: #1533174
7703fd
7703fd
* Mon Mar 06 2017 Richard Hughes <rhughes@redhat.com> - 0.7-3
7703fd
- Fix some more bugs spotted by coverity and RPMDiff.
7703fd
- Resolves: #1388476
7703fd
7703fd
* Thu Mar 02 2017 Richard Hughes <rhughes@redhat.com> - 0.7-2
7703fd
- Fix some bugs spotted by coverity and RPMDiff.
7703fd
- Resolves: #1388476
7703fd
7703fd
* Wed Mar 09 2016 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.7-1
7703fd
- 0.7 release update.
7703fd
7703fd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-6
7703fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7703fd
7703fd
* Tue Dec 01 2015 Fabiano Fidêncio <fidencio@redhat.com> - 0.6-5
7703fd
- Bump NVR and rebuild due to a mistakenly deleted build
7703fd
7703fd
* Thu Jul 30 2015 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.6-4
7703fd
- Fix wrong file modification date when creating cab.
7703fd
7703fd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
7703fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7703fd
7703fd
* Mon Mar 23 2015 Kalev Lember <kalevlember@gmail.com> - 0.6-2
7703fd
- Pull in the base library package when installing -devel
7703fd
7703fd
* Tue Mar 17 2015 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.6-1
7703fd
- Update to upstream release v0.6
7703fd
7703fd
* Tue Jan 06 2015 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.4-7
7703fd
- Avoid directory traversal CVE-2015-0552. rhbz#1179126
7703fd
7703fd
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-6
7703fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7703fd
7703fd
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.4-5
7703fd
- Rebuilt for gobject-introspection 1.41.4
7703fd
7703fd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
7703fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7703fd
7703fd
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
7703fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7703fd
7703fd
* Tue Feb 12 2013 Simone Caronni <negativo17@gmail.com> - 0.4-2
7703fd
- Removed rpm 4.5 macros/tags, it cannot be built with the vala in el5/el6.
7703fd
- Removed redundant requirement on libgcab1%%{_isa}, added automatically by rpm.
7703fd
7703fd
* Fri Feb  8 2013 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.4-1
7703fd
- Update to upstream v0.4.
7703fd
7703fd
* Fri Feb  8 2013 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.3-3
7703fd
- Align more fields.
7703fd
- Use double percentage in comment.
7703fd
- Include COPYING file in gcab package too.
7703fd
7703fd
* Fri Feb  8 2013 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.3-2
7703fd
- Untabify.
7703fd
- Use %%{buildroot} consitantly.
7703fd
- Do not use -1.0 in package names.
7703fd
- Add more tags based on the el5 spec template.
7703fd
- Re-add --enable-fast-install trick, to make gcab relink.
7703fd
7703fd
* Sun Jan 26 2013 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.3-1
7703fd
- Initial package (rhbz#895757)