diff --git a/.gitignore b/.gitignore index e69de29..fdb52c4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sng-1.1.0.tar.gz diff --git a/sng.spec b/sng.spec new file mode 100644 index 0000000..c5f537d --- /dev/null +++ b/sng.spec @@ -0,0 +1,52 @@ +%global _hardened_build 1 + +Name: sng +Version: 1.1.0 +Release: 1%{?dist} +Summary: Lossless editing of PNGs via a textual representation + +License: zlib +URL: http://sng.sourceforge.net/ +Source0: http://sourceforge.net/projects/sng/files/sng-%{version}.tar.gz + +BuildRequires: make +BuildRequires: gcc +BuildRequires: grep +BuildRequires: libpng-devel +BuildRequires: zlib-devel +BuildRequires: /usr/share/X11/rgb.txt + +%description +SNG (Scriptable Network Graphics) is a minilanguage designed +specifically to represent the entire contents of a PNG (Portable +Network Graphics) file in an editable form. Thus, SNGs representing +elaborate graphics images and ancillary chunk data can be readily +generated or modified using only text tools. + +SNG is implemented by a compiler/decompiler called sng that losslessly +translates between SNG and PNG. + +%prep +%autosetup + +%build +%configure +%make_build + +%install +%make_install + +%check +# Upstream has a test suite, but the test files are not packaged. +# Let's just check on the files that are in the tarball. +./sng_regress *.png *.sng + +%files +%license COPYING +%doc NEWS README TODO +%doc %_mandir/man1/sng.1* +%_bindir/sng + +%changelog +* Wed Nov 16 2016 Zbigniew Jędrzejewski-Szmek - 1.1.0-1 +- Initial packaging diff --git a/sources b/sources index e69de29..540018b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c234eb4c2c3fe36ed0005bba9b10cf38 sng-1.1.0.tar.gz