From dd8a76ab028cb3a94da22d2b94155f3bfb9784fb Mon Sep 17 00:00:00 2001 From: Vratislav Podzimek Date: Mon, 7 Mar 2016 10:00:24 +0100 Subject: [PATCH] New version - Packaging changes related to getting rid of GLib/GObject (vpodzime) - Adapt the python bindings and tests (vpodzime) - Get rid of GObject and GLib (vpodzime) - Define the __divmod__ method even for not dividing by Size (vpodzime) --- .gitignore | 1 + libbytesize.spec | 36 ++++++++++++++++-------------------- sources | 2 +- 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index c4ab9d7..1941bdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /libbytesize-0.1.tar.gz /libbytesize-0.2.tar.gz +/libbytesize-0.3.tar.gz diff --git a/libbytesize.spec b/libbytesize.spec index 7403956..29e56e6 100644 --- a/libbytesize.spec +++ b/libbytesize.spec @@ -1,6 +1,6 @@ Name: libbytesize -Version: 0.2 -Release: 3%{?dist} +Version: 0.3 +Release: 1%{?dist} Summary: A library for working with sizes in bytes License: LGPLv2+ URL: https://github.com/rhinstaller/libbytesize @@ -8,17 +8,13 @@ Source0: https://github.com/rhinstaller/libbytesize/archive/%{name}-%{versio %define realname bytesize -BuildRequires: glib2-devel -BuildRequires: gobject-introspection-devel BuildRequires: gmp-devel BuildRequires: mpfr-devel +BuildRequires: pcre-devel BuildRequires: gettext-devel BuildRequires: python-devel BuildRequires: python3-devel BuildRequires: gtk-doc -BuildRequires: glib2-doc - -Requires: gobject-introspection %description The libbytesize is a C library with GObject introspection support that @@ -30,32 +26,28 @@ MAXUINT64. %package devel Summary: Development files for libbytesize Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: glib2-devel -Requires: gobject-introspection-devel %description devel This package contains header files and pkg-config files needed for development with the libbytesize library. %package -n python-%{realname} -Summary: Python 2 GI overrides for libbytesize +Summary: Python 2 bindings for libbytesize Provides: python2-%{realname} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python-six -Requires: pygobject3-base %description -n python-%{realname} -This package contains Python 2 GI overrides for libbytesize making the use of +This package contains Python 2 bindings for libbytesize making the use of the library from Python 2 easier and more convenient. %package -n python3-%{realname} -Summary: Python 3 GI overrides for libbytesize +Summary: Python 3 bindings for libbytesize Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python3-six -Requires: python3-gobject %description -n python3-%{realname} -This package contains Python 3 GI overrides for libbytesize making the use of +This package contains Python 3 bindings for libbytesize making the use of the library from Python 3 easier and more convenient. %prep @@ -78,7 +70,6 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm} %{!?_licensedir:%global license %%doc} %license LICENSE %{_libdir}/libbytesize.so.* -%{_libdir}/girepository*/ByteSize*.typelib %files devel %{_libdir}/libbytesize.so @@ -86,16 +77,21 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm} %{_includedir}/bytesize/bs_size.h %{_libdir}/pkgconfig/bytesize.pc %{_datadir}/gtk-doc/html/libbytesize -%{_datadir}/gir*/ByteSize*.gir %files -n python-%{realname} -%{python2_sitearch}/gi/overrides/* +%{python2_sitearch}/bytesize/* %files -n python3-%{realname} -%{python3_sitearch}/gi/overrides/ByteSize* -%{python3_sitearch}/gi/overrides/__pycache__/ByteSize* +%{python3_sitearch}/bytesize/bytesize.py +%{python3_sitearch}/bytesize/__pycache__/bytesize.* %changelog +* Fri Feb 26 2016 Vratislav Podzimek - 0.3-1 +- Packaging changes related to getting rid of GLib/GObject (vpodzime) +- Adapt the python bindings and tests (vpodzime) +- Get rid of GObject and GLib (vpodzime) +- Define the __divmod__ method even for not dividing by Size (vpodzime) + * Thu Feb 04 2016 Fedora Release Engineering - 0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 3fd7d96..b01b1ec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bf2f7d64118af46e7bc03a3fac0631e4 libbytesize-0.2.tar.gz +eef829bddac464709d314f0a3e096364 libbytesize-0.3.tar.gz