Skip to content

Commit

Permalink
التحديث لـ 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
moceap authored Feb 19, 2017
1 parent 0641387 commit e4f0df7
Showing 1 changed file with 61 additions and 9 deletions.
70 changes: 61 additions & 9 deletions ojuba-personal-lock.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
%global owner ojuba-org
%global commit #Write commit number here

Name: ojuba-personal-lock
Summary: Folder Encrpytion GUI
Version: 0.2.4
Release: 2%{?dist}
Summary(ar): خزنة أعجوبة الشخصية
Version: 0.3
Release: 1%{?dist}
License: WAQFv2
Group: System Environment/Base
URL: https://github.com/ojuba-org/ojuba-personal-lock
Source0: https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
URL: http://ojuba.org
Source0: https://github.com/%{owner}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Requires: fuse-encfs
Requires: python
Requires: pygobject3 >= 3.0.2
Expand All @@ -17,18 +16,64 @@ BuildRequires: gettext
BuildRequires: intltool
BuildArch: noarch

%description -l ar
واجهة رسومية للمشفر فيوز

%description
PyGTK+ front-end for fuse-encfs

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

%build
make %{?_smp_mflags}

%install
%makeinstall DESTDIR=$RPM_BUILD_ROOT



# 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>Folder Encrpytion GUI</summary>
<summary xml:lang="ar">خزنة أعجوبة الشخصية</summary>
<description>
<p>
Folder Encrpytion GUI.
</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 @@ -38,19 +83,26 @@ fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%{_bindir}/g/u %{_datadir}/icons/hicolor || :
fi

%files
%doc README waqf2-ar.pdf
%license waqf2-ar.pdf
%doc waqf2-ar.pdf
%{_bindir}/%{name}
%{python2_sitelib}/*.egg-info
%{_datadir}/applications/*.desktop
%{_datadir}/locale/*/*/*.mo
%{_datadir}/%{name}/*.svg
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/appdata/%{name}.appdata.xml

%changelog
* Sun Feb 19 2017 Mosaab Alzoubi <[email protected]> - 0.3-1
- Update to 0.3
- New way to Github
- Add Appdata

* Sat Feb 15 2014 Mosaab Alzoubi <[email protected]> - 0.2.4-2
- Full Rivision.

Expand Down

0 comments on commit e4f0df7

Please sign in to comment.