Subversion Repositories pub

Compare Revisions

No changes between revisions

Ignore whitespace Rev 695 → Rev 696

/relevation/trunk/devtools/devenv.bash
0,0 → 1,23
#!/bin/bash
#
# This script sets up environment for development
# $Id$
#
pp="$(realpath "$(dirname "$0")"/../src)"
 
echo "#"
echo "# PYTHONPATH=\"$pp\""
echo "#"
echo "# alias: rel -> src/relevation/__main__.py"
echo "# alias: gui -> src/relevation/gui.py"
echo "#"
 
env PYTHONPATH="$pp" bash --rcfile <(cat <<EOF
[[ -f /etc/bash.bashrc ]] && source /etc/bash.bashrc
[[ -f ~/.bashrc ]] && source ~/.bashrc
PS1="[RLV]\\u@\\h:\\w\\$ "
alias rel='python -m relevation'
alias gui='python -m relevation.gui'
EOF
)
 
Property changes:
Added: svn:executable
+*
\ No newline at end of property
Added: svn:keywords
+Rev Id Date
\ No newline at end of property
/relevation/trunk/devtools/relevation.spec.in
0,0 → 1,86
# $Id$
# See http://fedoraproject.org/wiki/Packaging:Python
# Downstream specfile can be found at
# http://pkgs.fedoraproject.org/cgit/relevation.git/
 
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
 
Summary: Command-line search for Revelation Password Manager files
Name: relevation
Version: @VERSION@
Release: 1.pon%{?dist}
License: BSD
Packager: @PACKAGER@
Group: Applications/Text
URL: http://p.outlyer.net/relevation/
Source: http://p.outlyer.net/relevation/files/relevation-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: python3-devel, make
Requires: python3-libxml2
Requires: python3-crypto
Requires: python3-lxml
 
%description
Relevation is a tool to retrieve passwords stored in a password file in the
format used by Revelation, from the command-line instead of through a GUI.
 
%prep
%setup -q
 
%build
 
%install
rm -rf %{buildroot}
make install prefix=%{_prefix} DESTDIR=%{buildroot} INSTALL_LAYOUT=
# We include the extra tools as %%doc, remove from here
rm -rf %{buildroot}%{_prefix}/share/doc/relevation/extra/
 
%clean
rm -rf %{buildroot}
 
%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE
%doc devtools/*.py
%{_bindir}/relevation
%{_mandir}/man1/relevation.1*
%{python2_sitelib}/relevation/
%{python2_sitelib}/relevation-*.egg-info
 
%changelog
* Tue 11 Feb 2020 Toni Corvera <outlyer@gmail.com> 1.3.1-1.pon
- Updated to use Python 3
 
* Fri May 23 2014 Toni Corvera <outlyer@gmail.com> 1.3-1.pon
- Handle installation of new module
 
* Wed Oct 30 2013 Toni Corvera <outlyer@gmail.com> 1.2.1-1.pon
- Integrated spec from Fedora into upstream source
 
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
* Thu Mar 29 2012 Matthias Saou <matthias@saou.eu> 1.1-3
- Add missing python-lxml requirement (#807335).
 
* Mon Mar 26 2012 Matthias Saou <matthias@saou.eu> 1.1-2
- Fix URL vs. email in spec changelog.
 
* Mon Jul 18 2011 Matthias Saou <matthias@saou.eu> 1.1-1
- Update to 1.1.
- New extra tools, remove the "make install"ed ones, include them as %%doc.
 
* Mon Jul 4 2011 Matthias Saou <matthias@saou.eu> 1.0-1
- Initial RPM release.
 
Property changes:
Added: svn:keywords
+Rev Id Date
\ No newline at end of property
/relevation/trunk/devtools/relver.bash
5,7 → 5,7
# This scripts avoid having the same runtime requirements for package
# creation
 
r="$(dirname "$0")/../src/relevation.py"
r="$(dirname "$0")/../src/relevation/__init__.py"
 
rel=$(grep '^RELEASE' $r | tail -1)
verinfo=$(grep '^__version_info__' $r | head -1)
/relevation/trunk/devtools/setup.py.in
17,7 → 17,9
def run(self):
distutils.command.install_scripts.install_scripts.run(self)
for script in self.get_outputs():
if script.endswith(".py"):
if script.endswith('.bash'):
shutil.move(script, script[:-5])
elif script.endswith('.py'):
shutil.move(script, script[:-3])
 
setup(name='relevation',
33,12 → 35,12
license='BSD',
package_dir={'': 'src'},
packages=['relevation'],
scripts=['src/relevation.py'],
scripts=['src/relevation.bash'],
cmdclass = {"install_scripts": my_install}, # hook
data_files=[
('share/man/man1', ['relevation.1']),
#('share/doc/relevation', ['CHANGELOG']),
('share/doc/relevation/extra', ['src/gui.py','devtools/checkpw.py','devtools/genpw.py']),
('share/doc/relevation/extra', ['devtools/checkpw.py','devtools/genpw.py']),
]
)