Skip to content

Commit

Permalink
التحديث لـ 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moceap authored Feb 19, 2017
1 parent 7653c70 commit 22f3706
Showing 1 changed file with 55 additions and 5 deletions.
60 changes: 55 additions & 5 deletions thawab.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
%global owner ojuba-org
%global commit #Write commit number here

Name: thawab
Summary: Arabic/Islamic encyclopedia system
Summary(ar): نظام موسوعي عربي/إسلامي
URL: http://ojuba.org/
Version: 3.2.1
Version: 4.0
Release: 1%{?dist}
Source0: https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
Source0: https://github.com/%{owner}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
License: WAQFv2
BuildArch: noarch
Requires: python-whoosh >= 1.7.2
Expand All @@ -32,7 +31,7 @@ Thawab Arabic/Islamic encyclopedia system
نظام موسوعي عربي/إسلامي

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

%build
bash update-manual-from-site.sh
Expand All @@ -41,6 +40,49 @@ make %{?_smp_mflags}
%install
%make_install




# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Mosaab Alzoubi <[email protected]> -->
<!--
EmailAddress: [email protected]
SentUpstream: 2017-2-18
-->
<application>
<id type="desktop">%{name}.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<summary>Arabic/Islamic encyclopedia system</summary>
<summary xml:lang="ar">نظام موسوعي عربي/إسلامي</summary>
<description>
<p>
Arabic/Islamic encyclopedia system.
</p>
</description>
<description xml:lang="ar">
<p>
نظام موسوعي عربي/إسلامي.
</p>
</description>
<url type="homepage">https://github.com/ojuba-org/%{name}</url>
<screenshots>
<screenshot type="default">http://ojuba.org/screenshots/%{name}.png</screenshot>
</screenshots>
<updatecontact>[email protected]</updatecontact>
</application>
EOF



%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
Expand All @@ -65,9 +107,17 @@ fi
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/applications/*.desktop
%{_datadir}/locale/*/*/*.mo
%{_datadir}/appdata/%{name}.appdata.xml

%changelog
* Sun Nov 13 2016Ehab El-Gedawy <[email protected]> - 3.2.1-1
* Sun Feb 19 2017 Mosaab Alzoubi <[email protected]> - 4.0-1
- Update to 4.0
- New generation of Thqwab Server
- New enhanced look
- New way to Github
- Add Appdata

* Sun Nov 13 2016 Ehab El-Gedawy <[email protected]> - 3.2.1-1
- add webkitgtk3 dependancy

* Tue Jul 14 2015 Mosaab Alzoubi <[email protected]> - 3.2.0-3
Expand Down

0 comments on commit 22f3706

Please sign in to comment.