diff --git a/_service b/_service
new file mode 100644
index 0000000..5cc6a76
--- /dev/null
+++ b/_service
@@ -0,0 +1,15 @@
+
+
+ https://gitlab.com/redhat-crypto/fedora-crypto-policies.git
+ git
+ %cd.%h
+ enable
+ b21c8114995e07965c2ccde5f5767d0618d854bf
+
+
+
+ *.tar
+ xz
+
+
+
diff --git a/_servicedata b/_servicedata
new file mode 100644
index 0000000..072b706
--- /dev/null
+++ b/_servicedata
@@ -0,0 +1,4 @@
+
+
+ https://gitlab.com/redhat-crypto/fedora-crypto-policies.git
+ b21c8114995e07965c2ccde5f5767d0618d854bf
\ No newline at end of file
diff --git a/crypto-policies-gitb21c8114.tar.bz2 b/crypto-policies-gitb21c8114.tar.bz2
deleted file mode 100644
index 1efca4e..0000000
--- a/crypto-policies-gitb21c8114.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:17971f8765691d71f971a9845d8423ee3251ee0c665ba06ab2855bb3b6ff8fc8
-size 46974
diff --git a/crypto-policies.changes b/crypto-policies.changes
index cbe56e4..569c708 100644
--- a/crypto-policies.changes
+++ b/crypto-policies.changes
@@ -1,3 +1,14 @@
+-------------------------------------------------------------------
+Tue Feb 2 17:38:27 UTC 2021 - Dominique Leuenberger
+
+- Convert to use a proper git source _service:
+ + To update, one just needs to update the commit/revision in the
+ _service file and run `osc service dr`.
+ + The version of the package is defined by the commit date of the
+ revision, followed by the abbreviated git hash (The same
+ revision used before results thus in a downgrade to 20210118,
+ but as this is a alltime new package, this is acceptable.
+
-------------------------------------------------------------------
Tue Feb 2 12:33:19 UTC 2021 - Pedro Monreal
diff --git a/crypto-policies.spec b/crypto-policies.spec
index 943b8b3..b6b70b9 100644
--- a/crypto-policies.spec
+++ b/crypto-policies.spec
@@ -16,20 +16,15 @@
#
-%global git_date 20210127
-%global git_commit b21c8114995e07965c2ccde5f5767d0618d854bf
-%{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:8})}
-# source_validator doesn't allow command execution
-%global git_commit_shash b21c8114
%global _python_bytecompile_extra 0
Name: crypto-policies
-Version: %{git_date}
+Version: 20210118.b21c811
Release: 0
Summary: System-wide crypto policies
License: LGPL-2.1-or-later
Group: Productivity/Networking/Security
URL: https://gitlab.com/redhat-crypto/fedora-%{name}
-Source0: https://gitlab.com/redhat-crypto/fedora-%{name}/-/archive/%{git_commit_shash}/%{name}-git%{git_commit_shash}.tar.bz2
+Source0: fedora-%{name}-%{version}.tar.xz
Source1: README.SUSE
Patch0: crypto-policies-asciidoc.patch
Patch1: crypto-policies-typos.patch
@@ -73,7 +68,7 @@ The package also provides a tool fips-mode-setup, which can be used
to enable or disable the system FIPS mode.
%prep
-%autosetup -p1 -n fedora-crypto-policies-%{git_commit_shash}-%{git_commit}
+%autosetup -p1 -n fedora-%{name}-%{version}
%build
%make_build
diff --git a/fedora-crypto-policies-20210118.b21c811.obscpio b/fedora-crypto-policies-20210118.b21c811.obscpio
new file mode 100644
index 0000000..22043c8
--- /dev/null
+++ b/fedora-crypto-policies-20210118.b21c811.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8855cf9bc7aeb43d4169bde73f25dcf49bbab88cae89c8e6abfadfd26f90a9d3
+size 259083
diff --git a/fedora-crypto-policies.obsinfo b/fedora-crypto-policies.obsinfo
new file mode 100644
index 0000000..dcc82b5
--- /dev/null
+++ b/fedora-crypto-policies.obsinfo
@@ -0,0 +1,5 @@
+name: fedora-crypto-policies
+version: 20210118.b21c811
+mtime: 1610992246
+commit: b21c8114995e07965c2ccde5f5767d0618d854bf
+