Skip to content

Commit

Permalink
Update othman.spec
Browse files Browse the repository at this point in the history
General Revision.
  • Loading branch information
moceap committed Feb 16, 2014
1 parent bba7fb2 commit bb36898
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions othman.spec
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
%global owner ojuba-org
%global commit #Write commit number here

Name: othman
Version: 0.2.8
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Othman Electronic Quran Browser
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Group: Applications/Productivity
License: Waqf
URL: http://othman.ojuba.org
Source: http://git.ojuba.org/cgit/%{name}/snapshot/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: WAQFv2
URL: http://ojuba.org
Source: https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch: noarch
BuildRequires: python
Requires: islamic-menus, arabeyes-core-fonts
Requires: pygobject3 >= 3.0.2
BuildRequires: python2-devel
Requires: islamic-menus
Requires: arabeyes-core-fonts
Requires: pygobject3 >= 3.0.2
Requires: python-othman

%description
Othman Electronic Quran Browser displays Quranic text in Othmani script style
as written under authority of Othman ibn Affan the companion of prophet Muhammad PBUH

Othman project features fast search, autoscrolling, copy Quranic text to clipboard.

%prep
%setup -q
%setup -q -n %{name}-%{commit}

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall DESTDIR=$RPM_BUILD_ROOT

%post
Expand All @@ -43,39 +44,40 @@ if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%clean
rm -rf $RPM_BUILD_ROOT

%package -n python-othman
Group: System Environment/Base
Summary: python package providing access to Quranic text
License: Waqf
License: WAQFv2
BuildArch: noarch
Requires: python

%description -n python-othman
a python package that provides access to Quranic text with a fast search index

%files
%defattr(-,root,root,-)
%doc LICENSE-en LICENSE-ar.txt README README-ar.txt COPYING
%doc README README-ar.txt COPYING waqf2-ar.pdf
%{_bindir}/othman-browser
%{python_sitelib}/othman/gtkUi.p*
%{python2_sitelib}/othman/gtkUi.p*
%{_datadir}/applications/*.desktop
%{_datadir}/locale/*/*/*.mo
%{_datadir}/icons/hicolor/*/apps/*.png

%files -n python-othman
%defattr(-,root,root,-)
%doc LICENSE-en LICENSE-ar.txt README README-ar.txt COPYING
%dir %{python_sitelib}/othman
%doc README README-ar.txt COPYING waqf2-ar.pdf
%dir %{python2_sitelib}/othman
%dir %{_datadir}/othman
%{python_sitelib}/*.egg-info
%{python_sitelib}/othman/core.p*
%{python_sitelib}/othman/varuints.p*
%{python_sitelib}/othman/__init__.p*
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/othman/core.p*
%{python2_sitelib}/othman/varuints.p*
%{python2_sitelib}/othman/__init__.p*
%{_datadir}/othman/*

%changelog
* Mon Jun 4 2012 Mosaab Alzoubi <moceap@hotmail.com> - 0.2.8-2
- General Revision.

* Mon Jun 4 2012 Muayyad Saleh AlSadi <alsadi@ojuba.org> - 0.2.8-1
- port to gtk3

Expand All @@ -84,4 +86,3 @@ a python package that provides access to Quranic text with a fast search index

* Wed Apr 28 2010 Muayyad Saleh Alsadi <alsadi@ojuba.org> - 0.2.0-1
- initial release

0 comments on commit bb36898

Please sign in to comment.