initial package (1.3)
OBS-URL: https://build.opensuse.org/package/show/devel:tools/ansifilter?expand=0&rev=1
This commit is contained in:
commit
2d9c5434d2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
ansifilter-1.3.tar.bz2
Normal file
3
ansifilter-1.3.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0eed2a040a52c320d3a867b4081841cd0bea115ea8d498d085e776d0d9fe6584
|
||||
size 48868
|
10
ansifilter.desktop
Normal file
10
ansifilter.desktop
Normal file
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Terminal=false
|
||||
TryExec=ansifilter-gui
|
||||
Exec=ansifilter-gui %f
|
||||
Icon=ansifilter
|
||||
Type=Application
|
||||
Categories=
|
||||
StartupNotify=false
|
||||
Name=Ansifilter
|
||||
GenericName=ANSI escape code converter
|
109
ansifilter.spec
Normal file
109
ansifilter.spec
Normal file
@ -0,0 +1,109 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: ansifilter
|
||||
Version: 1.3
|
||||
Release: 0
|
||||
Summary: ANSI Terminal Escape Code Converter
|
||||
Source: http://www.andre-simon.de/zip/ansifilter-%{version}.tar.bz2
|
||||
Source1: ansifilter.desktop
|
||||
URL: http://www.andre-simon.de/
|
||||
Group: Development/Tools/Other
|
||||
License: GNU General Public License version 2 (GPL v2)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
BuildRequires: libqt4-devel gcc-c++ libstdc++-devel pkgconfig
|
||||
BuildRequires: gcc make glibc-devel
|
||||
BuildRequires: /usr/bin/convert
|
||||
BuildRequires: update-desktop-files
|
||||
|
||||
%description
|
||||
Ansifilter handles text files containing ANSI terminal escape codes.
|
||||
The command sequences may be stripped or be interpreted to generate formatted
|
||||
output (HTML, RTF, TeX, LaTeX).
|
||||
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Andre Simon <andre.simon1@gmx.de>
|
||||
|
||||
%package gui
|
||||
Summary: ANSI Terminal Escape Code Converter
|
||||
Group: Development/Tools/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description gui
|
||||
Ansifilter handles text files containing ANSI terminal escape codes.
|
||||
The command sequences may be stripped or be interpreted to generate formatted
|
||||
output (HTML, RTF, TeX, LaTeX).
|
||||
|
||||
This package provides a Qt4 Graphical User Interface to run %{name}.
|
||||
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Andre Simon <andre.simon1@gmx.de>
|
||||
|
||||
|
||||
%debug_package
|
||||
%prep
|
||||
%setup -q
|
||||
convert src/qt-gui/ansifilter.{ico,png}
|
||||
|
||||
%build
|
||||
%__make %{?jobs:-j%{jobs}} \
|
||||
QMAKE="%{_usr}/bin/qmake" \
|
||||
PREFIX="%{_prefix}" \
|
||||
man_dir="%{_mandir}/man1" \
|
||||
doc_dir="%{_docdir}/%{name}" \
|
||||
all \
|
||||
all-gui
|
||||
|
||||
%install
|
||||
%__make \
|
||||
DESTDIR="%{buildroot}" \
|
||||
QMAKE="%{_usr}/bin/qmake" \
|
||||
PREFIX="%{_prefix}" \
|
||||
man_dir="%{_mandir}/man1" \
|
||||
doc_dir="%{_docdir}/%{name}" \
|
||||
install \
|
||||
install-gui
|
||||
|
||||
%__rm "%{buildroot}%{_docdir}/%{name}"/INSTALL
|
||||
for f in "%{buildroot}%{_mandir}/man1"/*.gz; do
|
||||
[ -e "$f" ] && %__gzip -d "$f"
|
||||
done
|
||||
|
||||
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/ansifilter.desktop"
|
||||
%__install -D -m0644 src/qt-gui/ansifilter.png "%{buildroot}%{_datadir}/pixmaps/ansifilter.png"
|
||||
%__sed -i 's|^\(Icon=\).*$|$1ansifilter.png|g' "%{buildroot}%{_datadir}/applications/ansifilter.desktop"
|
||||
|
||||
%suse_update_desktop_file -r ansifilter Development Documentation
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/*
|
||||
%{_bindir}/ansifilter
|
||||
%doc %{_mandir}/man1/ansifilter.1*
|
||||
|
||||
%files gui
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/ansifilter-gui
|
||||
%{_datadir}/applications/ansifilter.desktop
|
||||
%{_datadir}/pixmaps/ansifilter.png
|
||||
|
||||
%changelog
|
||||
* Fri Jul 24 2009 Pascal Bleser <pascal.bleser@opensuse.org> 1.3
|
||||
- new package
|
||||
|
||||
# vim: set sw=3 ts=3 noet:
|
||||
# Local Variables:
|
||||
# mode: rpm-spec
|
||||
# tab-width: 3
|
||||
# End:
|
Loading…
Reference in New Issue
Block a user