3f8bd06
Name:           apiextractor
Kalev Lember 7c3a5ef
Version:        0.10.0
Kalev Lember 7c3a5ef
Release:        1%{?dist}
3f8bd06
Summary:        Library headers parser to extract API information
3f8bd06
3f8bd06
Group:          System Environment/Libraries
3f8bd06
License:        GPLv2
3f8bd06
URL:            http://www.pyside.org
3f8bd06
Source0:        http://www.pyside.org/files/apiextractor-%{version}.tar.bz2
3f8bd06
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3f8bd06
3f8bd06
BuildRequires:  cmake
3f8bd06
BuildRequires:  libxml2-devel
3f8bd06
BuildRequires:  libxslt-devel
3f8bd06
BuildRequires:  python-sphinx
3f8bd06
BuildRequires:  qt4-devel
3f8bd06
3f8bd06
%description
3f8bd06
The API Extractor library is used by the binding generator to parse headers of
3f8bd06
a given library and merge this data with information provided by type system
3f8bd06
(XML) files, resulting in a representation of how the API should be exported
3f8bd06
to the chosen target language. The generation of source code for the bindings
3f8bd06
is performed by specific generators using the API Extractor library.
3f8bd06
3f8bd06
3f8bd06
%package        devel
3f8bd06
Summary:        Development files for %{name}
3f8bd06
Group:          Development/Libraries
3f8bd06
Requires:       %{name} = %{version}-%{release}
3f8bd06
Requires:       cmake
3f8bd06
3f8bd06
%description    devel
3f8bd06
The %{name}-devel package contains libraries and header files for
3f8bd06
developing applications that use %{name}.
3f8bd06
3f8bd06
3f8bd06
%prep
3f8bd06
%setup -q
3f8bd06
3f8bd06
3f8bd06
%build
3f8bd06
mkdir -p %{_target_platform}
3f8bd06
pushd %{_target_platform}
3f8bd06
%{cmake} ..
3f8bd06
popd
3f8bd06
3f8bd06
make %{?_smp_mflags} -C %{_target_platform}
3f8bd06
3f8bd06
# Build html docs
Kalev Lember 7c3a5ef
make %{?_smp_mflags} -C %{_target_platform} doc
Kalev Lember 7c3a5ef
rm -f %{_target_platform}/doc/html/_static/images/._*
Kalev Lember 7c3a5ef
rm -f %{_target_platform}/doc/html/.buildinfo
Kalev Lember 7c3a5ef
rm -f %{_target_platform}/doc/html/objects.inv
Kalev Lember 7c3a5ef
rm -rf %{_target_platform}/doc/html/.doctrees
3f8bd06
3f8bd06
3f8bd06
%install
3f8bd06
rm -rf $RPM_BUILD_ROOT
3f8bd06
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
3f8bd06
3f8bd06
3f8bd06
%check
3f8bd06
make test -C %{_target_platform}
3f8bd06
3f8bd06
3f8bd06
%clean
3f8bd06
rm -rf $RPM_BUILD_ROOT
3f8bd06
3f8bd06
3f8bd06
%post -p /sbin/ldconfig
3f8bd06
3f8bd06
%postun -p /sbin/ldconfig
3f8bd06
3f8bd06
3f8bd06
%files
3f8bd06
%defattr(-,root,root,-)
3f8bd06
%doc AUTHORS ChangeLog COPYING
3f8bd06
%{_libdir}/libapiextractor.so.*
3f8bd06
3f8bd06
%files devel
3f8bd06
%defattr(-,root,root,-)
Kalev Lember 7c3a5ef
%doc %{_target_platform}/doc/html/
3f8bd06
%{_includedir}/apiextractor/
3f8bd06
%{_libdir}/libapiextractor.so
3f8bd06
%{_libdir}/pkgconfig/apiextractor.pc
3f8bd06
%{_libdir}/cmake/ApiExtractor-%{version}/
3f8bd06
3f8bd06
3f8bd06
%changelog
Kalev Lember 7c3a5ef
* Thu Mar 03 2011 Kalev Lember <kalev@smartlink.ee> - 0.10.0-1
Kalev Lember 7c3a5ef
- Update to 0.10.0
Kalev Lember 7c3a5ef
Jesse Keating ad1b137
* Wed Sep 29 2010 jkeating - 0.8.0-1.1
Jesse Keating ad1b137
- Rebuilt for gcc bug 634757
Jesse Keating ad1b137
Kalev Lember 6387213
* Sat Sep 11 2010 Kalev Lember <kalev@smartlink.ee> - 0.8.0-1
Kalev Lember 6387213
- Update to 0.8.0
Kalev Lember 6387213
Kalev Lember 0446abf
* Wed Aug 04 2010 Kalev Lember <kalev@smartlink.ee> - 0.7.0-1
Kalev Lember 0446abf
- Update to 0.7.0
Kalev Lember 0446abf
3f8bd06
* Mon Jun 21 2010 Kalev Lember <kalev@smartlink.ee> - 0.6.0-4
3f8bd06
- Use System Environment/Libraries for main package
3f8bd06
3f8bd06
* Sun Jun 20 2010 Kalev Lember <kalev@smartlink.ee> - 0.6.0-3
3f8bd06
- Removed .buildinfo file from documentation directory
3f8bd06
3f8bd06
* Sun Jun 20 2010 Kalev Lember <kalev@smartlink.ee> - 0.6.0-2
3f8bd06
- Build html documentation and ship it in -devel subpackage
3f8bd06
- typo fix in description
3f8bd06
3f8bd06
* Wed Jun 16 2010 Kalev Lember <kalev@smartlink.ee> - 0.6.0-1
3f8bd06
- Update to 0.6.0
3f8bd06
3f8bd06
* Fri Mar 26 2010 Kalev Lember <kalev@smartlink.ee> - 0.4.0-1
3f8bd06
- Initial RPM release