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)
This commit is contained in:
parent
f7b4ac4e3e
commit
dd8a76ab02
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/libbytesize-0.1.tar.gz
|
/libbytesize-0.1.tar.gz
|
||||||
/libbytesize-0.2.tar.gz
|
/libbytesize-0.2.tar.gz
|
||||||
|
/libbytesize-0.3.tar.gz
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: libbytesize
|
Name: libbytesize
|
||||||
Version: 0.2
|
Version: 0.3
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A library for working with sizes in bytes
|
Summary: A library for working with sizes in bytes
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/rhinstaller/libbytesize
|
URL: https://github.com/rhinstaller/libbytesize
|
||||||
@ -8,17 +8,13 @@ Source0: https://github.com/rhinstaller/libbytesize/archive/%{name}-%{versio
|
|||||||
|
|
||||||
%define realname bytesize
|
%define realname bytesize
|
||||||
|
|
||||||
BuildRequires: glib2-devel
|
|
||||||
BuildRequires: gobject-introspection-devel
|
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: glib2-doc
|
|
||||||
|
|
||||||
Requires: gobject-introspection
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libbytesize is a C library with GObject introspection support that
|
The libbytesize is a C library with GObject introspection support that
|
||||||
@ -30,32 +26,28 @@ MAXUINT64.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libbytesize
|
Summary: Development files for libbytesize
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: glib2-devel
|
|
||||||
Requires: gobject-introspection-devel
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains header files and pkg-config files needed for development
|
This package contains header files and pkg-config files needed for development
|
||||||
with the libbytesize library.
|
with the libbytesize library.
|
||||||
|
|
||||||
%package -n python-%{realname}
|
%package -n python-%{realname}
|
||||||
Summary: Python 2 GI overrides for libbytesize
|
Summary: Python 2 bindings for libbytesize
|
||||||
Provides: python2-%{realname} = %{version}-%{release}
|
Provides: python2-%{realname} = %{version}-%{release}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
Requires: pygobject3-base
|
|
||||||
|
|
||||||
%description -n python-%{realname}
|
%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.
|
the library from Python 2 easier and more convenient.
|
||||||
|
|
||||||
%package -n python3-%{realname}
|
%package -n python3-%{realname}
|
||||||
Summary: Python 3 GI overrides for libbytesize
|
Summary: Python 3 bindings for libbytesize
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
Requires: python3-gobject
|
|
||||||
|
|
||||||
%description -n python3-%{realname}
|
%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.
|
the library from Python 3 easier and more convenient.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -78,7 +70,6 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
|
|||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_libdir}/libbytesize.so.*
|
%{_libdir}/libbytesize.so.*
|
||||||
%{_libdir}/girepository*/ByteSize*.typelib
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libbytesize.so
|
%{_libdir}/libbytesize.so
|
||||||
@ -86,16 +77,21 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
|
|||||||
%{_includedir}/bytesize/bs_size.h
|
%{_includedir}/bytesize/bs_size.h
|
||||||
%{_libdir}/pkgconfig/bytesize.pc
|
%{_libdir}/pkgconfig/bytesize.pc
|
||||||
%{_datadir}/gtk-doc/html/libbytesize
|
%{_datadir}/gtk-doc/html/libbytesize
|
||||||
%{_datadir}/gir*/ByteSize*.gir
|
|
||||||
|
|
||||||
%files -n python-%{realname}
|
%files -n python-%{realname}
|
||||||
%{python2_sitearch}/gi/overrides/*
|
%{python2_sitearch}/bytesize/*
|
||||||
|
|
||||||
%files -n python3-%{realname}
|
%files -n python3-%{realname}
|
||||||
%{python3_sitearch}/gi/overrides/ByteSize*
|
%{python3_sitearch}/bytesize/bytesize.py
|
||||||
%{python3_sitearch}/gi/overrides/__pycache__/ByteSize*
|
%{python3_sitearch}/bytesize/__pycache__/bytesize.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 26 2016 Vratislav Podzimek <vpodzime@redhat.com> - 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 <releng@fedoraproject.org> - 0.2-3
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user