-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|