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