diff --git a/_service b/_service
deleted file mode 100644
index eb367d3..0000000
--- a/_service
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- https://github.com/cr-marcstevens/sha1collisiondetection.git
- git
- enable
- sha1collisiondetection
- %cd.%h
-
-
- *.tar
- xz
-
-
-
-
diff --git a/_servicedata b/_servicedata
deleted file mode 100644
index f62353b..0000000
--- a/_servicedata
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- https://github.com/cr-marcstevens/sha1collisiondetection.git
- ec0ddf3d6041989463a584fe2ca0d241f7248e43
\ No newline at end of file
diff --git a/sha1collisiondetection-1.0.3.tar.gz b/sha1collisiondetection-1.0.3.tar.gz
new file mode 100644
index 0000000..0b4daff
--- /dev/null
+++ b/sha1collisiondetection-1.0.3.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:77a1c2b2a4fbe4f78de288fa4831ca63938c3cb84a73a92c79f436238bd9ac07
+size 780306
diff --git a/sha1collisiondetection-20170228.ec0ddf3.tar.xz b/sha1collisiondetection-20170228.ec0ddf3.tar.xz
deleted file mode 100644
index 4112564..0000000
--- a/sha1collisiondetection-20170228.ec0ddf3.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:943388ca93f85c843e6346801ec4d6cce1c894caccb7a58eae59bf8a33344f74
-size 398424
diff --git a/sha1collisiondetection.changes b/sha1collisiondetection.changes
index 9d60737..ef8d0e5 100644
--- a/sha1collisiondetection.changes
+++ b/sha1collisiondetection.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Mon Apr 10 08:27:43 UTC 2017 - astieger@suse.com
+
+- update to 1.0.3:
+ * SIMD code removed
+ * performance improvements
+- package library
+
-------------------------------------------------------------------
Tue Feb 28 20:59:56 UTC 2017 - astieger@suse.com
diff --git a/sha1collisiondetection.spec b/sha1collisiondetection.spec
index 7f6973d..f8ab35d 100644
--- a/sha1collisiondetection.spec
+++ b/sha1collisiondetection.spec
@@ -18,14 +18,13 @@
Name: sha1collisiondetection
-Version: 20170228.ec0ddf3
+Version: 1.0.3
Release: 0
-Summary: Command line tool to detect SHA-1 collision in a file
+Summary: Detection of SHA-1 collisions
License: MIT
Group: Productivity/Security
Url: https://github.com/cr-marcstevens/sha1collisiondetection
-Source: %{name}-%{version}.tar.xz
-BuildRequires: fdupes
+Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -35,27 +34,65 @@ implementations. It will compute the SHA-1 hash of any given file and additional
will detect cryptanalytic collision attacks against SHA-1 present in each file.
It is very fast and takes less than twice the amount of time as regular SHA-1.
+%package -n libsha1detectcoll1
+Summary: Library that can detect SHA-1 collisions
+Group: Development/Libraries/C and C++
+
+%description -n libsha1detectcoll1
+This library was designed as near drop-in replacements for other sha1sum
+implementations. It will compute the SHA-1 hash of any given file and additionally
+will detect cryptanalytic collision attacks against SHA-1 present in each file.
+It is very fast and takes less than twice the amount of time as regular SHA-1.
+
+%package -n libsha1detectcoll-devel
+Summary: Development files for
+Group: Development/Libraries/C and C++
+Requires: libsha1detectcoll1 = %{version}
+
+%description -n libsha1detectcoll-devel
+This library was designed as near drop-in replacements for other sha1sum
+implementations. It will compute the SHA-1 hash of any given file and additionally
+will detect cryptanalytic collision attacks against SHA-1 present in each file.
+It is very fast and takes less than twice the amount of time as regular SHA-1.
+
%prep
-%setup -q
+%setup -q -n %{name}-stable-v%{version}
%build
+export TARGETCFLAGS="%{optflags}"
make %{?_smp_mflags} PREFIX=%{_prefix}
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
-make install \
+%make_install \
+ INCLUDEDIR=%{buildroot}%{_includedir} \
BINDIR=%{buildroot}%{_bindir} \
LIBDIR=%{buildroot}%{_libdir}
find %{buildroot} -type f -name "*.la" -delete -print
-%fdupes %{buildroot}%{_bindir}
+find %{buildroot} -type f -name "*.a" -delete -print
+chmod -x %{buildroot}%{_includedir}/sha1.h
%check
make %{?_smp_mflags} test
+%post -n libsha1detectcoll1 -p /sbin/ldconfig
+%postun -n libsha1detectcoll1 -p /sbin/ldconfig
+
%files
%defattr(-,root,root)
%doc LICENSE.txt README.md
%{_bindir}/*
+%files -n libsha1detectcoll1
+%defattr(-,root,root)
+%doc LICENSE.txt README.md
+%{_libdir}/libsha1detectcoll.so.*
+
+%files -n libsha1detectcoll-devel
+%defattr(-,root,root)
+%doc LICENSE.txt README.md
+%{_includedir}/sha1.h
+%{_libdir}/libsha1detectcoll.so
+
%changelog