Initial import (libcomps)

This commit is contained in:
Jindrich Luza 2013-08-08 14:46:31 +02:00
parent 4faabb0064
commit 09922a8da2
3 changed files with 152 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/libcomps-257459634117baa067c3dde2a8ea83def6851094.tar.gz

150
libcomps.spec Normal file
View File

@ -0,0 +1,150 @@
%global commit 257459634117baa067c3dde2a8ea83def6851094
Name: libcomps
Version: 0.1.2
Release: 2%{?dist}
Summary: Comps XML file manipulation library
Group: Development/Libraries
License: GPLv2+
URL: https://github.com/midnightercz/libcomps/
Source0: https://github.com/midnightercz/libcomps/archive/%{commit}/libcomps-%{commit}.tar.gz
BuildRequires: libxml2-devel
BuildRequires: check-devel
BuildRequires: expat-devel
%if 0%{?rhel} == 6
BuildRequires: cmake28
%else
BuildRequires: cmake
%endif
%description
Libcomps is library for structure-like manipulation with content of
comps XML files. Supports read/write XML file, structure(s) modification.
%package doc
Summary: Documentation files for libcomps library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
BuildRequires: doxygen
%description doc
Documentation files for libcomps library
%package devel
Summary: Development files for libcomps library
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for libcomps library
%package -n python-libcomps
Summary: Python2 bindings for libcomps library
Group: Development/Libraries
BuildRequires: python-devel
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python-libcomps
Python2 bindings for libcomps library
%package -n python3-libcomps
Summary: Python3 bindings for libcomps library
Group: Development/Libraries
BuildRequires: python3-devel
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python3-libcomps
Python3 bindings for libcomps library
%prep
%setup -qn %{name}-%{commit}
rm -rf py3
mkdir ../py3
cp -a . ../py3/
mv ../py3 ./
%build
%cmake -DPYTHON_DESIRED:STRING=2 libcomps/
make %{?_smp_mflags}
make %{?_smp_mflags} docs
pushd py3
%cmake -DPYTHON_DESIRED:STRING=3 libcomps/
make %{?_smp_mflags}
make %{?_smp_mflags} docs
popd
%check devel
make test
%install
make install DESTDIR=%{buildroot}
pushd py3
make install DESTDIR=%{buildroot}
popd
%clean
rm -rf $buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/libcomps.so.*
%doc README.md COPYING
%files devel
%{_libdir}/libcomps.so
%{_includedir}/*
%files doc
%doc docs/libcomps-doc/html
%files -n python-libcomps
%{_libdir}/python2*
%exclude %{_libdir}/python2/libcomps/__pycache__
%files -n python3-libcomps
%{_libdir}/python3*
%exclude %{_libdir}/python3/libcomps/__pycache__
%changelog
* Thu Aug 08 2013 Jindrich Luza <jluza@redhat.com> 0.1.2.git2574596
- spec modified
* Thu Jul 18 2013 Jindrich Luza <jluza@redhat.com> 0.1.2
- automatic changelog system
- fixed issue #14
- libcomps.Dict is now behave more like python dict. Implemented iter(libcomps.Dict)
- libcomps.iteritems() and libcomps.itervalues()
- added <packagereq requires=...> support
- remaked error reporting system.
- libcomps.Comps.fromxml_f and libcomps.Comps.fromxml_str now return
- -1, 0 or 1. 0 means parse procedure completed without any problem,
- 1 means there's some errors or warnings but not fatal. -1 indicates
- fatal error problem (some results maybe given, but probably incomplete
- and invalid)
- errors catched during parsing can be obtained by calling
- libcomps.Comps.get_last_parse_errors
- all log is given by
- libcomps.Comps.get_last_parse_log
- improved integrated tests
- documentation is now isolated make target ('make docs')
- prop system complete
- fixed issue 1
- fixed issue 3
- new prop system in progress....
- separated doc package
- some minor fixes in CMakeFiles
* Tue Jun 25 2013 Jindrich Luza <jluza@redhat.com> 0.1.1-1
- Automatic commit of package [libcomps] release [0.1.1-1].

View File

@ -0,0 +1 @@
8c37e88f0b7880eaca5225454cc7a1e5 libcomps-257459634117baa067c3dde2a8ea83def6851094.tar.gz